﻿namespace KelonProud.Mvc.Models
{
    public class DropDownTableModel: ViewBaseModel
    {
        public DropDownTableModel()
        {
            IdField = "Id";
            KeyField = "Name";
            IsShowBtn = true;
            IsShowHeader = true;
            IsReadOnly = true;
            IsEnabled = true;
        }

        public string Url { get; set; }

        //列表中需要显示的字段
        public string EffectiveFields { get; set; }

        //列表中需要显示的字段备注
        public string EffectiveFieldsAlias { get; set; }

        //列表中搜索的字段
        public string SeachFields { get; set; }

        //Value字段
        public string IdField { get; set; }

        //显示字段
        public string KeyField { get; set; }

        //是否显示按钮
        public bool IsShowBtn { get; set; }

        //是否显示表头
        public bool IsShowHeader { get; set; }

        //是否允许输入值
        public bool IsReadOnly { get; set; }

        //数据处理事件
        public string ProcessDataEvent { get; set; }

        //选择值后返回事件
        public string CallbackEvent { get; set; }

        //是否启用
        public bool IsEnabled { get; set; }
    }
}
